package controllers.validation.utils;

import ch.bfh.abcm.rems.sensors.tinkerforge.TFSensorType;

public class MessageTextController {

    public String getSensorNotRespondingMesssage(String sensorUid, String measurementIP, TFSensorType sensorType) {
        return "SENSOR_NOT_RESPONDING [MP: " + measurementIP + "] [T: " + sensorType + "] [UID: " + sensorUid + "]";
    }

    public String getSensorRespondingMesssage(String sensorUid, String measurementIP, TFSensorType sensorType) {
        return "SENSOR_RESPONDING [MP: " + measurementIP + "] [T: " + sensorType + "] [UID: " + sensorUid + "]";
    }

    public String getSensorDivergentOutOfRangeMessage(String measurementIP, TFSensorType sensorType, int diff,
            int maxdiff) {
        return "SENSOR_VALUES_OUT_OF_RANGE [MP: " + measurementIP + "] [T: " + sensorType + "] [DIFF: " + diff
                + " > MAXDIFF: " + maxdiff + "]";
    }

    public String getSensorDivergentInRangeMessage(String measurementIP, TFSensorType sensorType, int diff,
            int maxdiff) {
        return "SENSOR_VALUES_IN_RANGE [MP: " + measurementIP + "] [T: " + sensorType + "] [DIFF: " + diff
                + " > MAXDIFF: " + maxdiff + "]";
    }

    public String getNodeNotRespondingMesssage(String node, TFSensorType sensorType) {
        return "NODE_NOT_RESPONDING [N:" + node + "] [SensorType: " + sensorType + "]";
    }

    public String getNodeRespondingMesssage(String node, TFSensorType sensorType) {
        return "NODE_RESPONDING [N:" + node + "] [SensorType: " + sensorType + "]";
    }

    public String getMesurementPointOutOfRangeMessage(String measurementIP, TFSensorType sensorType, int min,
            int max, int effective) {
        return "MP_MEASUREMENT_OUT_OF_RANGE [MP: " + measurementIP + "] [T: " + sensorType + "] [MIN: " + min
                + " MAX: " + max + " AVG: " + effective + "]";
    }

    public String getMesurementPointInRangeMessage(String measurementpoint, TFSensorType sensorType, int min, int max,
            int effective) {
        return "MP_MEASUREMENT_IN_RANGE [MP: " + measurementpoint + "] [T: " + sensorType + "] [MIN: " + min + " MAX: "
                + max + " AVG: " + effective + "]";
    }

    public String getMesurementPointOKMessage(String measurementpoint, TFSensorType sensorType, int effective) {
        return "MP_MEASUREMENT_OK [MP: " + measurementpoint + "] [T: " + sensorType + "] [VAL: " + effective + "]";
    }

}
